﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using shop.entity;
using shop.dao;
namespace shop.service
{
    public class OrderService
    {
        private OrderDao orderDao = new OrderDao();
        public Order getOrder(int id){
            return orderDao.GetOrder(id);
        }

        public List<Order> ListOrder()
        {
            return orderDao.ListOrder();
        }

        public bool Add(Order order)
        {
            return orderDao.AddOrder(order);
        }
       
        public bool DeleteOrder(int id)
        {
            return orderDao.DeleteOrder(id);
        }

        public bool UpdateOrder(Order order)
        {
            return orderDao.UpdateOrder(order);
        }
    }
}